// 	Name: 11.c
//	Description: Chapter 6 project 11
//	Author: StableGenius
//	Date: 2020-07-09
//	Email: feng@dongfa.pro

#include <stdio.h>

int main(void){
	float result = 1.0f;
	int n, factorial = 1;

	printf("Enter your integer: ");
	scanf("%d", &n);

	for (int i = 1; i <= n; i++)
	{
		result += 1.0f / factorial;
		factorial *= (i + 1);
	}

	printf("e = %f\n", result);

	return 0;
}